import { http } from "@/utils/http/axios";
// 查询登录列表
export function getPageList(params = {}) {
	return http.request<API.Response.BasicResponse>({
		url: "/monitor/operlog/page",
		method: "get",
		params
	});
}
// 清空登录日志
export function clearLoginLog() {
	return http.request<API.Response.BasicResponse>({
		url: "/monitor/operlog/clean",
		method: "DELETE"
	});
}
export function countData() {
	return http.request<API.Response.BasicResponse>(
		{
			url: "/monitor/operlog/statistics",
			method: "GET"
		},
		{
			isTransformResponse: true
		}
	);
}
// 统计登录日志
export function countLoginInfoData(type: string) {
	return http.request<API.Response.BasicResponse>({
		url: `/monitor/operlog/count/${type}`,
		method: "GET"
	});
}
